home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Programare / sharp / wwwSharp_setup.exe / {app} / Examples / Control / HostControl.wsits (.txt) < prev    next >
Windows Compiled HTML Help File  |  2003-12-23  |  9KB  |  34 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4.     <TITLE>www-Sharp.ClrHost Control example</TITLE>
  5.     <META name="GENERATOR" content="MSHTML 6.00.2800.1264">
  6.     <META http-equiv="MSThemeCompatible" content="Yes">
  7. <SCRIPT language="JScript">
  8. function OnBtnTestClick()
  9. {
  10.     var dm = SimpleControl.DrawingMode;
  11.     dm++;
  12.     if (dm > 2) dm = 0;
  13.     SimpleControl.DrawingMode = dm;
  14. }
  15. </SCRIPT>
  16. </HEAD>
  17. <BODY>
  18.     <!-- ClrControl object. AssemblyName and TypeName parameters are required.
  19.         AssemblyName - preferrably should be full assembly name (with version, key, culture),
  20.         TypeName - full type name (with namespace).
  21.         Other parameters will be set to correspond object public properties by
  22.         .Net framework.
  23.         -->
  24.     <OBJECT id="SimpleControl" height="500" width="500" border="1"
  25.         classid="clsid:1D0542B3-2139-4138-B9E0-0AB5D1AF8D49">
  26.         <PARAM name="AssemblyName" value="SimpleControl">
  27.         <PARAM name="TypeName" value="Microsoft.Samples.WinForms.Cs.SimpleControl.SimpleControl">
  28.         <PARAM name="Text" value="Hello from .Net control">
  29.     </OBJECT>
  30.     <BR>
  31.     <BUTTON id="btnTest" onclick="OnBtnTestClick()">Test</BUTTON> 
  32. </BODY>
  33. </HTML>
  34.